import request from "@/utils/request";

/**
 * 设计师等级 列表
 * @param pram
 */
export function levelListApi() {
  return request({
    url: `/admin/designer/level/list`,
    method: "get",
  });
}

/**
 * 设计师等级 新增
 * @param pram
 */
export function levelSaveApi(data) {
  return request({
    url: `/admin/designer/level/save`,
    method: "post",
    data,
  });
}

/**
 * 设计师等级 编辑
 *  @param pram
 */
export function levelUpdateApi(data) {
  return request({
    url: `/admin/designer/level/update`,
    method: "post",
    // params,
    data,
  });
}

/**
 * 设计师等级 删除
 * @param pram
 */
export function levelDeleteApi(id) {
  return request({
    url: `/admin/system/user/level/delete/${id}`,
    method: "post",
  });
}

/**
 * 设计师佣金 分页查询
 * @param pram https://test-mall.suddenly-awake.com:30001/api/admin/designer/commission/list
 */
export function brokerageListApi(params) {
    return request({
      url: '/admin/designer/commission/list',
      method: 'get',
      params
    })
  }
/**
 * 设计师佣金 批量提现记录
 * @param pram https://test-mall.suddenly-awake.com:30001/api/admin/designer/commission/withdrawal/batch/list
 */
export function withdrawBatchListApi(params) {
    return request({
      url: '/admin/designer/commission/withdrawal/batch/list',
      method: 'get',
      params
    })
  }
/**
 * 设计师佣金 批量提现记录详情
 * @param pram https://test-mall.suddenly-awake.com:30001/api/admin/designer/commission/withdrawal/item/list
 */
export function withdrawItemListApi(params) {
    return request({
      url: '/admin/designer/commission/withdrawal/item/list',
      method: 'get',
      params
    })
  }
